package com.itheima.stock.pojo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 外盘指数
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class OutMarketDomain {

    /**
     * 大盘名称
     */
    private String name;

    /**
     * 当前大盘点
     */
    private BigDecimal curPoint;

    /**
     * 涨跌值
     */
    private BigDecimal upDown;

    /**
     * 涨幅
     */
    private BigDecimal rose;

    /**
     * 当前时间，eg:20220128
     */
    @JsonFormat(pattern = "yyyyMMdd", timezone = "Asia/Shanghai")
    private Date curTime;

}
